/********************************************************************************
 *      Copyright:  (C) 2022 xiezongyi<1764417007@qq.com>
 *                  All rights reserved.
 *
 *       Filename:  server.h
 *    Description:  This head file 
 *
 *        Version:  1.0.0(04/08/22)
 *         Author:  xiezongyi <1764417007@qq.com>
 *      ChangeLog:  1, Release initial version on "04/08/22 12:56:05"
 *                 
 ********************************************************************************/
#ifndef _SERVER_H_
#define _SERVER_H_

/*  evconnlistener callback: accept */
void accept_conn_cb(struct evconnlistener *listener, evutil_socket_t clifd, struct sockaddr * cliaddr, int cliaddr_len, void *arg);

/*  evconnlistener callback: error */
void accpet_error_cb(struct evconnlistener *listener, void *arg);

/*  bufferevent callback: read  */
void read_cb(struct bufferevent *bev, void *arg);

/*  bufferevent callback: event  */
void event_cb(struct bufferevent *bev, short events, void *arg);

/*  print help information */
void print_usage(char *progname);

#endif
